import type { UserResponseData } from "./type";
import request from "../../../utils/request";

export const userList = (data:any) => {
    return request<UserResponseData>({
        url: "/api/creation-detail/getAll",
        method: "get",
        params: data
    })
}


export const userList2 = (data:any) => {
    return request<UserResponseData>({
        url: "/api/creation-remark/getAll",
        method: "get",
        params: data
    })
}

export const userListAdd = (data:any) => {
    return request<UserResponseData>({
        url: "/api/creation/insert",
        method: "post",
        data: data
    })
}

//点赞
export const getThes= (data:any) => {
    return request<UserResponseData>({
        url: "/api/digg-count-threshold/getAll",
        method: "get",
        params: data
    })
}

//新增点赞数量 
export const thresholdtAdd = (data:any) => {
    return request<UserResponseData>({
        url: "/api/digg-count-threshold/insert",
        method: "post",
        data: data
    })
}
//评论
export const getkeyList = (data:any) => {
    return request<UserResponseData>({
        url: "/api/key-word-search/getAll",
        method: "get",
        params: data
    })
}